<%@ page language="java"  pageEncoding="UTF-8"%>
<%@include file="/common/jsp/cssAndScript.jsp"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%@include file="/pages/head.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>鼎烜电力集团网络办公平台</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script src="${pageContext.request.contextPath}/common/js/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript">
		 	function changeDate(userId){
			 	var year = document.getElementById('year').value;
			 	var month = document.getElementById('month').value;
			 	var state = document.getElementById('state').value;
			 	if(year == null || year == ""){
					alert("请选择年份！");
					return false;
				}
				if(month == null || month == ""){
					alert("请选择月份！");
					return false;
				}
				if(state == null || state == ""){
					alert("请选择类型！");
					return false;
				}
				var url = "<%=basePath %>person/getAllTrip.action?year="+year+"&month="+month+"&state="+state;
				location.href=url;
		 	 }
		</script>
	</head>
	<body style="overflow:hidden;">		
		<div id="main_container">
			<div id="container_border">
				<div class="content_title">
					<h3 class="basedate_econTargetList_titleIcon">
						出差监控列表
					</h3>
				</div>
				<div class="form_primary">
					<table border="0" cellspacing="0" cellpadding="0" width="100%">
						<tr>
							<td>
								
							</td>
							
							<td style="width:40%;">
								<a class="btn_grid_box btn_file_icon2" href="javascript:void(0);">请选择日期
									<s:select id="year" onchange="changeDate()" list="#{'2011':'2011','2012':'2012','2013':'2013','2014':'2014','2015':'2015','2016':'2016','2017':'2017','2018':'2018','2019':'2019'}" name="year" headerKey="" headerValue="请选择" value="year" theme="simple" cssClass="dialogy_input required"/>
									<s:select id="month" onchange="changeDate()" list="#{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'8','9':'9','10':'10','11':'11','12':'12'}" name="month" headerKey="" headerValue="请选择" value="month" theme="simple" cssClass="dialogy_input required"/>
								</a>
								<a class="btn_grid_box btn_file_icon2" href="javascript:void(0);">请选择类型
									<s:select id="state" onchange="changeDate()" list="#{'1':'未提交或被驳回','2':'审批中','3':'已通过或已付款'}" name="state" headerKey="" headerValue="请选择" value="state" theme="simple" cssClass="dialogy_input required"/>
								</a>
								
								
							    <a class="btn_grid_box btn_file_icon2" href="javascript:void(0);" onclick="showDialog('鼎烜电力集团网络办公平台','gotoTrip','500','350');">新建出差单</a>
							</td>
						</tr>
					</table>
				</div>
				<p class="modle_hr"></p>
				<div class="window_1">
					<div id="_econTargetList_div_id">
						<%@include file="_tripAll.jsp"%>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>